<?php
class Pform_model extends CI_Model {

        public $title;
        public $content;
        public $date;

        public function __construct()
        {
                // Call the CI_Model constructor
                parent::__construct();
        }

        public function insert_list($english_name,$phone,$email,$img_path,$fb_id,$fb_name,$fb_email,$photo_title,$marketing)
        {
                $insert_list = array('english_name' => $english_name,
                                     'phone' => $phone,
                                     'email' => $email,
                                     'photo' => $img_path,
                                     'fb_id' => $fb_id,
                                     'fb_name' => $fb_name,
                                     'fb_email' => $fb_email,
                                     'status' => '0',
                                     'photo_title' => $photo_title,
                                     'marketing' => $marketing,
                                     'results' => '0'
                );
                $this->db->insert('photos_lists', $insert_list);
        }

        public function get_all_lists()
        {
            $this->db->select('fb_id')->from('photos_lists');
            $fb_id = $this->db->get();
      		
            if ($fb_id->num_rows()>0){
    			return $fb_id->result_array();
    		}
    		else{
    			return FALSE;
    		}
        }
}